package com.boge.mybatis.sqlSession;

import java.sql.SQLException;
import java.util.List;

/**
 * 定义Dao层基本查询接口
 */
public interface SqlSession {

    <T> T selectOne(String statement) throws SQLException, ClassNotFoundException;

    <T> T selectOne(String statement, Object parameter);

    <T> List<T> selectList(String statement);

    <T> List<T> selectList(String statement, Object parameter);

    void close();
}

  